//
//  SXCommonDevHelper.h
//  SXIotSDK
//
//  Created by 林鑫 on 2020/6/30.
//

#import <Foundation/Foundation.h>
#import "DeviceInfo.h"
#import "GateWayInfo.h"
#import "FuncInfo.h"

NS_ASSUME_NONNULL_BEGIN

@interface SXCommonDevHelper : NSObject

+ (void)query:(NSInteger)deviceId zkId:(NSString*)zkId;
+ (void)study:(NSInteger)deviceId zkId:(NSString*)zkId listener:(void(^)(DeviceInfo* deviceInfo, NSError* error))listener;
+ (void)ctrl:(NSInteger)deviceId zkId:(NSString*)zkId value:(NSString*)value;
+ (void)ctrlWithDev:(DeviceInfo*)deviceInfo value:(NSString*)value;
+ (void)setTemp:(NSInteger)deviceId zkId:(NSString*)zkId temp:(double)temp;
+ (void)setTempWithDev:(DeviceInfo*)deviceInfo temp:(double)temp;
+ (void)clearUdpCache:(GateWayInfo*) gateWayInfo deviceInfoList:(NSArray<DeviceInfo*>*)deviceInfo funcInfoList:(NSArray<FuncInfo*>*)funcInfoList;

@end

NS_ASSUME_NONNULL_END
